.class Lcom/waiqin365/lightapp/kehu/l;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/kehu/a/a/ap;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/ap;->b()Z

    move-result v1

    if-eqz v1, :cond_4

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/a/a/ap;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "location"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/a/a/ap;->f:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "location_a"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/a/a/ap;->g:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/a/a/ap;->h:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-static {v2}, Lcom/waiqin365/base/db/offlinedata/d;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/d;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;)Ljava/lang/String;

    move-result-object v3

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/a/a/ap;->f:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Lcom/waiqin365/base/db/offlinedata/d;->b(Ljava/lang/String;Ljava/lang/String;)Z

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-static {v2}, Lcom/waiqin365/base/db/offlinedata/d;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/d;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/db/offlinedata/d;->c(Ljava/lang/String;)Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v2

    if-eqz v2, :cond_1

    iget-object v3, v2, Lcom/waiqin365/lightapp/kehu/b/am;->f:Ljava/lang/String;

    if-eqz v3, :cond_0

    iget-object v2, v2, Lcom/waiqin365/lightapp/kehu/b/am;->f:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_1

    :cond_0
    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-static {v2}, Lcom/waiqin365/base/db/offlinedata/d;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/d;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;)Ljava/lang/String;

    move-result-object v3

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/a/a/ap;->g:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Lcom/waiqin365/base/db/offlinedata/d;->c(Ljava/lang/String;Ljava/lang/String;)Z

    :cond_1
    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-static {v2, v5}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;I)I

    :goto_1
    const-string/jumbo v2, "labelType"

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->b(Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;)I

    move-result v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v2, "json"

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->c(Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;)Lcom/waiqin365/compons/c/f;

    move-result-object v3

    invoke-virtual {v3}, Lcom/waiqin365/compons/c/f;->i()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->dismissProgressDialog()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    const v4, 0x7f08011a

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v5}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    const-string/jumbo v2, "CMAddCustomerMapLableActivity"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "\u63a5\u53e3\u8fd4\u56de:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/a/a/ap;->f:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, ","

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/a/a/ap;->g:Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v3, ","

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->b(Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;)I

    move-result v3

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    const/16 v2, 0x74

    invoke-virtual {v0, v2, v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->setResult(ILandroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;Landroid/content/Intent;)V

    goto/16 :goto_0

    :cond_2
    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-static {v2, v6}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;I)I

    goto :goto_1

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->dismissProgressDialog()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    const v4, 0x7f080118

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/a/a/ap;->e:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0, v6}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;->dismissProgressDialog()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/l;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerMapLableActivity;

    iget v0, v0, Lcom/waiqin365/lightapp/kehu/a/a/ap;->c:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x8
        :pswitch_0
    .end packed-switch
.end method
